package com.p2p.auth.service.repository;

import com.p2p.auth.common.enums.AuthMenuType;
import com.p2p.auth.domain.entity.AuthMenuItem;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Antinomy on 16/12/14.
 */
public interface AuthMenuItemRepository extends JpaRepository<AuthMenuItem, Long> {

     AuthMenuItem findByMenuId(String menuId);

    List<AuthMenuItem> findByMenuType(AuthMenuType menuType);

    List<AuthMenuItem> findByMenuTypeAndParentId(AuthMenuType menuType, Long id);
}
